<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'业务类','list'=>array(
							array('name'=>'jy_guanjia','title'=>'管家你好','icon'=>'fa-share-alt','color'=>'#cc99ff','action'=>'jy_cmsarticle/news/','desc'=>' 管家你好！社区物业管家体系','image'=>'../addons/jy_cms/resource/images/jy_cmsarticle.png'),
							array('name'=>'jy_smallquan','title'=>'小周圈社区','icon'=>'fa-cutlery','color'=>'#ff9933','action'=>'jy_dish/store_list/','desc'=>'智慧物业小区，新互联网小区','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_merch','title'=>'多商户','icon'=>'fa-building-o','color'=>'#66cc66','action'=>'jy_jd/index/','desc'=>'多商户模式，人人都是卖家','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
			)),
);
//判断是否基本设置了
$setting = $this->plugin_setting('setting');
$plugin_setting = $setting['plugins'];
if($plugin_setting){
		$list[1]['list'] = $plugin_setting;
}
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}

return  $list;